#!/bin/bash
#root=$(cd "$(dirname "$0")";pwd)
PHP_ROOT=/usr/local/phpstudy/soft/php/php-7.4.5

sudo mkdir -p $PHP_ROOT
sudo cp -r ./* $PHP_ROOT/

echo "export PHP_ROOT=$PHP_ROOT" >> ~/.profile
echo 'export PATH=$PATH:$PHP_ROOT/bin:$PHP_ROOT/sbin' >> ~/.profile


